<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="https://unpkg.com/vue@next"></script>
<body>
    <div id="root"></div>    
</body>
<script>
    const app = Vue.createApp({
     data() {
         return {
            content:0
         }
     },
     methods: {
        handlerClick() {
            // console.log(event);
            // this.content += num;
            alert(1)
        },
        handlerClick1(num, event) {
            // console.log(event);
            // this.content += num;
            alert(2)
        }
     },
     template: `
        {{content}}
        <button @click="handlerClick(), handlerClick1()">点击</button>
     `
    })

    const vm = app.mount('#root')
 </script>
</html>
<!-- 
click 绑定多个函数 需要加()
@click.stop
@click.self 子元素生效
 -->